package com.cuiweiyou.vigilesmicrecord.base;

import android.os.Environment;

import java.io.File;

/**
 * Created by macpro on 2018/4/18.
 */

public class ContantValue {
    public static final int NUMBER_DELAY_1000 = 1000;

    public static String getCrashPath() {
        String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/data/vigiles_mic_crash/";
        File file = new File(path);
        if (!file.exists()) {
            file.mkdir();
        }

        return path;
    }

    /**
     * 刚刚录制的，未上传的文件
     *
     * @return
     */
    public static String getSoundSavePath() {
        String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/data/vigiles_mic_record/";
        File file = new File(path);
        if (!file.exists()) {
            file.mkdirs();
        }

        return path;
    }
}
